import axios from '@/utils/request';

//获取所有文章
export function getArticleList(current: number, size: number) {
    return axios({
        url: `/article/articles/getArticleList/${current}/${size}`,
        method: "get"
    })
}

//搜索
export function searchArticle(articleParams: object) {
    return axios({
        url: "/article/articles/searchArticle",
        method: "post",
        data: articleParams
    })
}

//导出
export function exportArticle() {
    return axios({
        url: "/article/articles/exportArticle",
        method: "get",
        responseType: 'blob',
    })
}